package com.cdzs.twocamera.myservice;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.cdzs.twocamera.keeplive.JobSchedulerManager;

public class SystemKeepLiveService extends Service {

    // JobService，执行系统任务
    private JobSchedulerManager mJobManager;

    public SystemKeepLiveService() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        // TODO: Return the communication channel to the service.
        throw new UnsupportedOperationException("Not yet implemented");
    }

    @Override
    public void onCreate() {
        super.onCreate();
        //      启动系统任务
        mJobManager = JobSchedulerManager.getJobSchedulerInstance(this);
        mJobManager.startJobScheduler();
    }
}
